<!DOCTYPE html>
<html lang="zh-CN">
<!--浏览器搞笑标题-->
<script type="text/javascript" src="/js/FunnyTitle.js"></script>






<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/binblog/img/binblog.ico">
  <link rel="icon" type="image/png" href="/binblog/img/binblog.ico">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="leo-bin">
  <meta name="keywords" content="">
  <title>拿到一台新MAC我会干什么 - 阿斌的个人博客</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/binblog/lib/hint/hint.min.css" />

  
    <link  rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/10.0.0/styles/dracula.min.css" />
  

  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_yg9cfy8wd6.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_pjno9b9zyxs.css">


<link  rel="stylesheet" href="/binblog/css/main.css" />

<!-- 自定义样式保持在最底部 -->


<meta name="generator" content="Hexo 4.2.1"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/binblog/">&nbsp;<strong>Abin的Blog</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/binblog/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/binblog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/binblog/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/binblog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/binblog/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="view intro-2" id="background" parallax=true
         style="background: url('/binblog/img/6.webp') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container text-center white-text fadeInUp">
            <span class="h2" id="subtitle">
              
            </span>

            
              
  <div class="mt-3 post-meta">
    <i class="iconfont icon-date-fill" aria-hidden="true"></i>
    <time datetime="2021-05-10 17:50">
      2021年5月10日 下午
    </time>
  </div>


<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      2.4k 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      27
       分钟
    </span>
  

  
  
    
      <!-- LeanCloud 统计文章PV -->
      <span id="leancloud-post-views-container" class="post-meta" style="display: none">
        <i class="iconfont icon-eye" aria-hidden="true"></i>
        <span id="leancloud-post-views"></span> 次
      </span>
    
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid">
  <div class="row">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-md">
      <div class="container nopadding-md" id="board-ctn">
        <div class="py-5" id="board">
          <div class="post-content mx-auto" id="post">
            
              <p class="note note-info">
                
                  本文最后更新于：2021年5月10日 晚上
                
              </p>
            
            <article class="markdown-body">
              <h1>拿到一台新MAC我会干什么</h1>
<h2 id="前言"><a class="header-anchor" href="#前言"></a>前言</h2>
<p>滴滴这边开发基本上都是<strong>Mac</strong>，但是我之前从来没有用过MacOS</p>
<p>以至于入职那几天啥事儿都没干，基本上都用来熟悉电脑了</p>
<p>个人觉得作为一名开发人员，一个舒适，清爽的<strong>开发环境</strong>非常的重要</p>
<p>就像行走江湖，手上没有几个衬手的<strong>武器</strong>  🔪  +   🏹️  +  🔫   +​ ​ ⚔️   哪敢<code>行侠仗义，该出手时就出手</code>？</p>
<p>其实就是不想在开发时，突然要找一个啥啥啥东西，但是下的东西太多，你都不知道放哪了😅</p>
<p>Ok，本人从入职以来，逐渐搭建了一套专属于自己的开发环境</p>
<p>这里记录一下，以防万一换电脑了，也便于迁移 ​ 🤙</p>
<h2 id="必装·软件"><a class="header-anchor" href="#必装·软件"></a>必装·软件</h2>
<h3 id="第一类：办公神器篇"><a class="header-anchor" href="#第一类：办公神器篇"></a><strong>第一类：办公神器篇</strong></h3>
<h4 id="1-utools–生产力黑科技"><a class="header-anchor" href="#1-utools–生产力黑科技"></a>1.utools–生产力黑科技</h4>
<p>类似于Mac上的<strong>SpotLight</strong></p>
<p>快捷键一键呼出，<strong>全局搜索</strong>：app快开，网页快开，设置快开，文件快开</p>
<p>集成了开发所需的大部分功能：</p>
<p>聚合翻译，文档快查（Linux，Redis，Vue，Java等等）</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315145224387.png" srcset="/binblog/img/loading.gif" alt="image-20210315145224387" style="zoom: 33%;" />
<p>各种功能，应有尽有！</p>
<p>最关键的是！这款应用十分<strong>轻量级</strong>！平时不用的时候根本不占资源！</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315145440838.png" srcset="/binblog/img/loading.gif" alt="image-20210315145440838" style="zoom: 33%;" />
<p>这款小而美的黑科技神器是国人自研的，完全免费！</p>
<p>下载地址：   <a href="https://u.tools/" target="_blank" rel="noopener">https://u.tools/</a></p>
<h4 id="2-写作神器–Typora"><a class="header-anchor" href="#2-写作神器–Typora"></a>2.写作神器–Typora</h4>
<p>这年头写作，记笔记，写wiki基本都被markdown给替换了</p>
<p>因为md的语法非常的简洁，易用。</p>
<p>同样的，一款简约好用的md编辑器也很重要，这里强烈推荐typora！</p>
<p>简约！大气！高颜！易用！强大！🐂🍺！</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315150009932.png" srcset="/binblog/img/loading.gif" alt="image-20210315150009932" style="zoom: 50%;" />
<p>下载地址：  <a href="https://www.typora.io/" target="_blank" rel="noopener">https://www.typora.io/</a></p>
<h4 id="3-系统管理利器–CleanMyMac-X"><a class="header-anchor" href="#3-系统管理利器–CleanMyMac-X"></a>3.系统管理利器–CleanMyMac X</h4>
<p>有的时候我们想要管理一下我们的app（更新，卸载，查看等等），但是又不想使用360或者腾讯这种狗皮膏药般的体验</p>
<p>在Win上可以用火绒，但是在Mac上可以用<strong>CleanMyMac X</strong>！（不过需要收费，网上有破解版的）</p>
<p>下载地址：  <a href="https://github.com/shabake/CleanMyMacX" target="_blank" rel="noopener">https://github.com/shabake/CleanMyMacX</a></p>
<p>嫌慢这里给出百度云地址： todo：加上地址</p>
<h4 id="4-截图神器–iShot"><a class="header-anchor" href="#4-截图神器–iShot"></a>4.截图神器–iShot</h4>
<p>截图功能没什么，用自带可以，微信的也可以，QQ也行，网页的也行</p>
<p>但是！上面说过的app都没有<strong>滚动截长图</strong>的功能！</p>
<p>这里推荐一个非常赞的截图神器：<strong>iShot</strong>（部分功能需要收费）</p>
<p>下载地址：<a href="https://www.foxmac.com/ishot.html" target="_blank" rel="noopener">https://www.foxmac.com/ishot.html</a></p>
<h4 id="5-手机管理神器–iMazing"><a class="header-anchor" href="#5-手机管理神器–iMazing"></a>5.手机管理神器–iMazing</h4>
<p>如果你的手机也是apple的话，那么你一定会被苹果对手机文件管理的限制气到吐血</p>
<p>但是有时候你又不得不在手机和电脑上互传一些东西（什么小视频呀，小照片啥的）</p>
<p>这里推荐：<strong>iMazing</strong>（收费软件，不过免费也能用，对于我来说免费的部分够用了）</p>
<p>下载地址：   <a href="https://imazing.com/" target="_blank" rel="noopener">https://imazing.com/</a></p>
<h4 id="6-壁纸管理大师-pap-er"><a class="header-anchor" href="#6-壁纸管理大师-pap-er"></a><a href="http://6.xn----pap-dx4iyxi62ax03cj5puyh.er" target="_blank" rel="noopener">6.壁纸管理大师--pap.er</a></h4>
<p>一键<strong>切换壁纸</strong>！</p>
<p><strong>5k</strong>的清晰度！随时下载！随时切换！</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315153748385.png" srcset="/binblog/img/loading.gif" alt="image-20210315153748385" style="zoom: 33%;" />
<p>下载地址：   <a href="http://paper.meiyuan.in/" target="_blank" rel="noopener">http://paper.meiyuan.in/</a></p>
<h4 id="7-屏幕保护–fliqlo"><a class="header-anchor" href="#7-屏幕保护–fliqlo"></a>7.屏幕保护–fliqlo</h4>
<p>实现时钟翻页的效果：</p>
<p>简约+科技感十足！</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315154227941.png" srcset="/binblog/img/loading.gif" alt="image-20210315154227941" style="zoom: 33%;" />
<p>下载地址：   <a href="https://fliqlo.com/" target="_blank" rel="noopener">https://fliqlo.com/</a></p>
<h4 id="8-日历管理利器–itsycal"><a class="header-anchor" href="#8-日历管理利器–itsycal"></a>8.日历管理利器–itsycal</h4>
<p>Mac上自带的日历悬浮功能感觉太简单了，字体也小，这里推荐一个升级版日历悬浮功能！</p>
<p>可以一键添加日程，如果Mac上配了icloud的话，手机上的日程直接同步电脑！</p>
<p>还可以自定义日历和时间的显示，亲测体验非常Nice！</p>
<p>同样，软件体积也是非常的小！</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315154532511.png" srcset="/binblog/img/loading.gif" alt="image-20210315154532511" style="zoom:50%;" />
<p>下载地址：   <a href="https://www.mowglii.com/itsycal/" target="_blank" rel="noopener">https://www.mowglii.com/itsycal/</a></p>
<h4 id="9-Mac最好用的视频播放器–IINA"><a class="header-anchor" href="#9-Mac最好用的视频播放器–IINA"></a>9.Mac最好用的视频播放器–IINA</h4>
<p><strong>简约+强大+易用+性能极佳</strong>， 就是它了：<strong>IINA</strong></p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315155156297.png" srcset="/binblog/img/loading.gif" alt="image-20210315155156297" style="zoom: 33%;" />
<p>下载地址：<a href="https://www.iina.io/" target="_blank" rel="noopener">https://www.iina.io/</a></p>
<h4 id="10-菜单栏管理神器–Hidden-Bar"><a class="header-anchor" href="#10-菜单栏管理神器–Hidden-Bar"></a>10.菜单栏管理神器–Hidden Bar</h4>
<p>Mac有个很蛋疼的地方就是，它的桌面菜单栏没有缩放的功能。。。</p>
<p>所有打开的app都会显示在菜单栏上，像这样：</p>
<p><img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315155510497.png" srcset="/binblog/img/loading.gif" alt="image-20210315155510497"></p>
<p>东西一多你根本分不清哪个软件是哪个，而且个人觉得，这样全部裸奔出来也非常的丑。。。</p>
<p>这里推荐一个自定义菜单栏的小而美的app：<strong>Hidden Bar</strong></p>
<p>你可以通过拖拽实现哪些app在打开的时候需要显示在菜单栏中，哪些需要隐藏住</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315155814743.png" srcset="/binblog/img/loading.gif" alt="image-20210315155814743" style="zoom:50%;" />
<p><strong><code>是不是瞬间就清爽了许多！</code></strong></p>
<p>下载地址：   <a href="https://mac.softpedia.com/get/Utilities/Hidden-Bar.shtml" target="_blank" rel="noopener">https://mac.softpedia.com/get/Utilities/Hidden-Bar.shtml</a></p>
<h4 id="11-Mac上的压缩神器–MacZip"><a class="header-anchor" href="#11-Mac上的压缩神器–MacZip"></a>11.Mac上的压缩神器–MacZip</h4>
<p>Mac自带了压缩app，但是个人觉得不太好用，而且能够支持的压缩文件也不全</p>
<p>这里推荐一个：<strong>MacZip</strong></p>
<p>下载地址：   <a href="https://ezip.awehunt.com/" target="_blank" rel="noopener">https://ezip.awehunt.com/</a></p>
<h4 id="12-下载利器–迅雷"><a class="header-anchor" href="#12-下载利器–迅雷"></a>12.下载利器–迅雷</h4>
<p>我知道迅雷已经被万人唾弃了，但是！我们有时候从<strong>浏览器</strong>上下载东西</p>
<p>用的都是浏览器自带的下载器，大部时候都慢点一批（尤其是<strong>Chrome</strong>）</p>
<p>个人发现如果使用迅雷，其实下载速度还是挺不错的！（亲测至少快4～5倍）</p>
<p>这里推荐使用Chrome+迅雷下载托管插件</p>
<p>任何下载链接都能够自动被嗅探并托管给迅雷下载，非常方便！</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210312175849346.png" srcset="/binblog/img/loading.gif" alt="image-20210312175849346" style="zoom: 50%;" />
<p>迅雷下载地址： <a href="https://xl11.xunlei.com/" target="_blank" rel="noopener">https://xl11.xunlei.com/</a></p>
<p>mac上的<strong>迅雷托管插件</strong>被和谐了，网上资源很少，这里直接给出百度云地址：xxx</p>
<h3 id="第二类：开发人员必备篇"><a class="header-anchor" href="#第二类：开发人员必备篇"></a><strong>第二类：开发人员必备篇</strong></h3>
<h4 id="1-JetBrains全家桶"><a class="header-anchor" href="#1-JetBrains全家桶"></a>1.JetBrains全家桶</h4>
<p>JetBrains就不用我多说了，他们公司开发的IDE基本上各大公司都在用</p>
<p><strong>IDEA-开发Java，WebStorm-开发前端，GoLand-开发Go，PyCharm-开发Python</strong></p>
<p>可惜都要付费，不过都有免费版本的，但是如果你想体验下付费版就需要另外找办法破解了</p>
<p>这里给出一个牛人破解方法：  <a href="https://lupf.cn/articles/2020/12/28/1609086006897.html" target="_blank" rel="noopener">https://lupf.cn/articles/2020/12/28/1609086006897.html</a></p>
<p><strong>不过如果你有钱的话还是支持下正版哈（我没钱。。。）</strong></p>
<h4 id="2-接口调试神器–PostMan"><a class="header-anchor" href="#2-接口调试神器–PostMan"></a>2.接口调试神器–PostMan</h4>
<p>作为后端开发人员，接口调试可谓是我们日常都在接触的东西</p>
<p>虽然你可以使用最原始的终端进行curl请求，但是有时候你需要将这些接口的请求信息进行记录</p>
<p>这里推荐使用<strong>PostMan</strong></p>
<p>下载地址：   <a href="https://www.postman.com/downloads/" target="_blank" rel="noopener">https://www.postman.com/downloads/</a></p>
<h4 id="3-数据库连接利器–Navicat-Premium"><a class="header-anchor" href="#3-数据库连接利器–Navicat-Premium"></a>3.数据库连接利器–Navicat Premium</h4>
<p>这东西就不用我多说了，懂得都懂，简直就是必备！</p>
<p>不过Navicat Premium是收费的，而且Mac上的破解版本挺难找的，这里直接给出百度云地址</p>
<p>地址：    todo：百度云地址</p>
<h4 id="4-Mac最好用的终端神器–iTerm"><a class="header-anchor" href="#4-Mac最好用的终端神器–iTerm"></a>4.Mac最好用的终端神器–iTerm</h4>
<p>Mac自带的终端其实也还好，但是有些功能也不全，自定义不够灵活</p>
<p>这里推荐使用一个终端神器：<strong>iTerm</strong></p>
<p>我们可以通过配置zsh来打造一个属于自己的终端：<strong>语法高亮，命令自动补全</strong>等等</p>
<p><strong>可参考：</strong></p>
<p><a href="https://www.jianshu.com/p/ba08713c2b19" target="_blank" rel="noopener">https://www.jianshu.com/p/ba08713c2b19</a></p>
<p><a href="https://gist.github.com/kevin-smets/8568070" target="_blank" rel="noopener">https://gist.github.com/kevin-smets/8568070</a></p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315164405575.png" srcset="/binblog/img/loading.gif" alt="image-20210315164405575" style="zoom: 33%;" />
<p>下载地址：<a href="https://iterm2.com/downloads.html" target="_blank" rel="noopener">https://iterm2.com/downloads.html</a></p>
<h4 id="5-安装包管理神器–HomeBrew"><a class="header-anchor" href="#5-安装包管理神器–HomeBrew"></a>5.安装包管理神器–HomeBrew</h4>
<p>Mac中最牛的app管理神器：<strong>HomeBrew</strong></p>
<p>下载安装参考这个：</p>
<p><a href="https://zhuanlan.zhihu.com/p/111014448" target="_blank" rel="noopener">https://zhuanlan.zhihu.com/p/111014448</a></p>
<h4 id="6-Redis连接神器–Another-Redis-Desktop-Manager"><a class="header-anchor" href="#6-Redis连接神器–Another-Redis-Desktop-Manager"></a>6.Redis连接神器–Another Redis Desktop Manager</h4>
<p>不多说，总不能每次要查数据就起一个<strong>客户端</strong>吧</p>
<p>下载地址：<a href="https://github.com/qishibo/AnotherRedisDesktopManager/releases" target="_blank" rel="noopener">https://github.com/qishibo/AnotherRedisDesktopManager/releases</a></p>
<p>或者使用<strong>brew</strong>直接安装：</p>
<div class="hljs"><pre><code class="hljs shell">brew cask install another-redis-desktop-manager</code></pre></div>
<h4 id="7-抓包利器–Charles"><a class="header-anchor" href="#7-抓包利器–Charles"></a>7.抓包利器–Charles</h4>
<p>Mac上的抓包神器，界面清爽，功能强大：</p>
<p>直接下载安装就行：<a href="https://www.charlesproxy.com/" target="_blank" rel="noopener">https://www.charlesproxy.com/</a></p>
<h3 id="8-一些常用的环境："><a class="header-anchor" href="#8-一些常用的环境："></a>8.一些常用的环境：</h3>
<p><strong>maven，git，nodejs，jdk，redis，mysql</strong>等等就不一一介绍了</p>
<h2 id="必有·设置"><a class="header-anchor" href="#必有·设置"></a>必有·设置</h2>
<h3 id="1-触控板"><a class="header-anchor" href="#1-触控板"></a>1.触控板</h3>
<p>Mac上的触控板是世界上最好的触控板，不接受任何人反驳！</p>
<p>我一开始也挺不喜欢用触控板的，觉得这样裸奔非常不爽，完全依赖鼠标</p>
<p>但是接触了Mac的触控板，我现在基本上以及不用鼠标了，完全依赖触控板！</p>
<p>看看我的鼠标，就像失宠的贵妃，被我丢在一边😂</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/%E9%BC%A0%E6%A0%87%E8%A2%AB%E5%BC%83%E7%94%A8.jpeg" srcset="/binblog/img/loading.gif" style="zoom: 33%;" />
<p>不过要想用好这块触控板还需要额外的设置：</p>
<p>1.打开系统偏好设置，找到触控板</p>
<p>2.可以根据它的提示学习下各种操作</p>
<p>3.然后在返回系统偏好设置找到辅助功能</p>
<p>4.找到指针控制-&gt;触控板选项-&gt;开启三指拖移</p>
<p>5.具体三指拖移如何用，请百度，不多说（一句话：非常强大！）</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315170234630.png" srcset="/binblog/img/loading.gif" alt="image-20210315170234630" style="zoom: 33%;" />
<h3 id="2-鼠标"><a class="header-anchor" href="#2-鼠标"></a>2.鼠标</h3>
<p>鼠标其实没啥好说的，但是！个人觉得Mac中的设置鼠标移动速度就算调到max也不爽</p>
<p>如果你也和我一样，想要获得高鼠标dpi的体验的话，那么就打开你的终端：</p>
<p>输入：</p>
<div class="hljs"><pre><code class="hljs shell">defaults read -g com.apple.mouse.scaling</code></pre></div>
<p>默认值是3，如果你想要再快一点可以使用如下命令修改：</p>
<div class="hljs"><pre><code class="hljs sh">defaults write -g com.apple.mouse.scaling 9</code></pre></div>
<p>最多改到9，改完之后需要重启电脑</p>
<p><strong>联想：</strong></p>
<p>同样的，触控板的移动速度是否也能这样改呢？</p>
<p>不过命令怎么改？我们观察上面的命令：<strong><code>apple.mouse.scaling</code></strong></p>
<p>是不是只要把mouse换成触控板的英文单词就行了？</p>
<p>我们随手去网上搜一下<strong>触控板</strong>的英文单词：</p>
<img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315172513225.png" srcset="/binblog/img/loading.gif" alt="image-20210315172513225" style="zoom:50%;" />
<p>然后我们试一下这个命令：</p>
<p>（图片没有保存。。。之后补上）</p>
<p>果然，不存在，难道我们的方向错了？</p>
<p>不对，我们可以看到，它报的是找不到touchpad这个名词的错误，也许apple内部用的不是这个单词？</p>
<p>于是我就去apple官网上直接搜索触控板（<strong>非中文官网</strong>），找到了它卖的妙控板：</p>
<p><img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315173025498.png" srcset="/binblog/img/loading.gif" alt="image-20210315173025498"></p>
<p>上面用的是：<strong>trackpad</strong></p>
<p><strong>ok，我们再试一次：</strong></p>
<p><img src="https://bins-pic.oss-cn-shanghai.aliyuncs.com/mypic/image-20210315173137494.png" srcset="/binblog/img/loading.gif" alt="image-20210315173137494"></p>
<p>成功啦！！！！！</p>
<h3 id="3-程序坞"><a class="header-anchor" href="#3-程序坞"></a>3.程序坞</h3>
<p>图标放大功能：</p>
<p>未完待续。。。</p>

            </article>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/binblog/categories/%E7%94%9F%E6%B4%BB%E9%9A%8F%E7%AC%94/">生活随笔</a>
                    
                  </div>
                
                
              </div>
              
                <p class="note note-warning">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" target="_blank" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！</p>
              
              
                <div class="post-prevnext row">
                  <div class="post-prev col-6">
                    
                    
                  </div>
                  <div class="post-next col-6">
                    
                    
                      <a href="/binblog/2021/05/10/%E6%88%91%E5%8E%BB%E6%BB%B4%E6%BB%B4%E5%95%A6%EF%BC%81/">
                        <span class="hidden-mobile">我去滴滴啦！</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </div>
                </div>
              
            </div>

            
              <!-- Comments -->
              <div class="comments" id="comments">
                
                
  <div id="vcomments"></div>
  <script defer src="https://cdn.staticfile.org/valine/1.4.14/Valine.min.js" ></script>

  <script type="text/javascript">
    var oldLoadVa = window.onload;
    window.onload = function () {
      oldLoadVa && oldLoadVa();

      new Valine({
        el: "#vcomments",
        app_id: "vsanVmkaurLHyq2Xey9odo5V-gzGzoHsz",
        app_key: "v2hMMe4Mzz3mqpy9jwd7qx8B",
        placeholder: "说点什么吧！",
        path: window.location.pathname,
        avatar: "retro",
        meta: ["nick","mail","link"],
        pageSize: "10",
        lang: "zh-CN",
        highlight: true,
        recordIP: false,
        serverURLs: "",
      });
    };
  </script>
  <noscript>Please enable JavaScript to view the <a href="https://valine.js.org" target="_blank" rel="nofollow noopener noopener">comments
      powered by Valine.</a></noscript>


              </div>
            
          </div>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div id="tocbot"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
    </div>
    
  <div class="statistics">
    
    

    
      
        <!-- LeanCloud 统计PV -->
        <span id="leancloud-site-pv-container" style="display: none">
            总访问量 
            <span id="leancloud-site-pv"></span>
             次
          </span>
      
      
        <!-- LeanCloud 统计UV -->
        <span id="leancloud-site-uv-container" style="display: none">
            总访客数 
            <span id="leancloud-site-uv"></span>
             人
          </span>
      

    
  </div>


    
  <!-- 备案信息 -->
  <div class="beian">
    <a href="http://beian.miit.gov.cn/" target="_blank"
       rel="nofollow noopener">京ICP证123456号</a>
    
      <a
        href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=12345678"
        rel="nofollow noopener"
        class="beian-police"
        target="_blank"
      >
        <span class="beian-police-sep">&nbsp;|&nbsp;</span>
        
          <img src="/binblog/img/police_beian.png" srcset="/binblog/img/loading.gif" alt="police-icon" />
        
        <span>京公网安备12345678号</span>
      </a>
     
  </div>


    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/binblog/js/debouncer.js" ></script>
<script  src="/binblog/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/binblog/js/lazyload.js" ></script>
  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/binblog/js/clipboard-use.js" ></script>



  <script defer>
  (function () {
    // 查询存储的记录
    function getRecord(Counter, target) {
      return new Promise(function (resolve, reject) {
        Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({target})))
          .then(resp => resp.json())
          .then(({results, code, error}) => {
            if (code === 401) {
              throw error;
            }
            if (results && results.length > 0) {
              var record = results[0];
              resolve(record);
            } else {
              Counter('post', '/classes/Counter', {target, time: 0})
                .then(resp => resp.json())
                .then((record, error) => {
                  if (error) {
                    throw error;
                  }
                  resolve(record);
                }).catch(error => {
                console.error('Failed to create', error);
                reject(error);
              });
            }
          }).catch((error) => {
          console.error('LeanCloud Counter Error:', error);
          reject(error);
        });
      })
    }

    // 发起自增请求
    function increment(Counter, incrArr) {
      return new Promise(function (resolve, reject) {
        Counter('post', '/batch', {
          "requests": incrArr
        }).then((res) => {
          res = res.json();
          if (res.error) {
            throw res.error;
          }
          resolve(res);
        }).catch((error) => {
          console.error('Failed to save visitor count', error);
          reject(error);
        });
      });
    }

    // 构建自增请求体
    function buildIncrement(objectId) {
      return {
        "method": "PUT",
        "path": `/1.1/classes/Counter/${ objectId }`,
        "body": {
          "time": {
            '__op': 'Increment',
            'amount': 1
          }
        }
      }
    }

    // 校验是否为有效的 UV
    function validUV() {
      var key = 'LeanCloud_UV_Flag';
      var flag = localStorage.getItem(key);
      if (flag) {
        // 距离标记小于 24 小时则不计为 UV
        if (new Date().getTime() - parseInt(flag) <= 86400000) {
          return false;
        }
      }
      localStorage.setItem(key, new Date().getTime().toString());
      return true;
    }

    function addCount(Counter) {
      var enableIncr = 'true' === 'true' && window.location.hostname !== 'localhost';
      var getterArr = [];
      var incrArr = [];

      // 请求 PV 并自增
      var pvCtn = document.querySelector('#leancloud-site-pv-container');
      if (pvCtn || enableIncr) {
        var pvGetter = getRecord(Counter, 'site-pv').then((record) => {
          incrArr.push(buildIncrement(record.objectId))
          var ele = document.querySelector('#leancloud-site-pv');
          if (ele) {
            ele.innerText = record.time + 1;
            if (pvCtn) {
              pvCtn.style.display = 'inline';
            }
          }
        });
        getterArr.push(pvGetter);
      }

      // 请求 UV 并自增
      var uvCtn = document.querySelector('#leancloud-site-uv-container');
      if (uvCtn || enableIncr) {
        var uvGetter = getRecord(Counter, 'site-uv').then((record) => {
          var vuv = validUV();
          vuv && incrArr.push(buildIncrement(record.objectId))
          var ele = document.querySelector('#leancloud-site-uv');
          if (ele) {
            ele.innerText = record.time + (vuv ? 1 : 0);
            if (uvCtn) {
              uvCtn.style.display = 'inline';
            }
          }
        });
        getterArr.push(uvGetter);
      }

      // 如果是文章，请求文章的浏览数，并自增
      if ('true' === 'true') {
        var viewCtn = document.querySelector('#leancloud-post-views-container');
        if (viewCtn || enableIncr) {
          var target = decodeURI('/binblog/2021/05/10/%E6%8B%BF%E5%88%B0%E4%B8%80%E5%8F%B0%E6%96%B0MAC%E6%88%91%E4%BC%9A%E5%B9%B2%E4%BB%80%E4%B9%88/');
          var viewGetter = getRecord(Counter, target).then((record) => {
            incrArr.push(buildIncrement(record.objectId))
            if (viewCtn) {
              var ele = document.querySelector('#leancloud-post-views');
              if (ele) {
                ele.innerText = (record.time || 0) + 1;
                viewCtn.style.display = 'inline';
              }
            }
          });
          getterArr.push(viewGetter);
        }
      }

      // 如果启动计数自增，批量发起自增请求
      if (enableIncr) {
        Promise.all(getterArr).then(() => {
          incrArr.length > 0 && increment(Counter, incrArr);
        })
      }
    }

    var app_id = 'vsanVmkaurLHyq2Xey9odo5V-gzGzoHsz'
    var app_key = 'v2hMMe4Mzz3mqpy9jwd7qx8B'
    var server_url = ''

    function fetchData(api_server) {
      var Counter = (method, url, data) => {
        return fetch(`${ api_server }/1.1${ url }`, {
          method,
          headers: {
            'X-LC-Id': app_id,
            'X-LC-Key': app_key,
            'Content-Type': 'application/json',
          },
          body: JSON.stringify(data)
        });
      };

      addCount(Counter);
    }

    var api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${ app_id.slice(0, 8).toLowerCase() }.api.lncldglobal.com`;

    if (api_server) {
      fetchData(api_server);
    } else {
      fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
        .then(resp => resp.json())
        .then(({api_server}) => {
          fetchData('https://' + api_server);
        });
    }
  })();
</script>






  <script  src="https://cdn.staticfile.org/tocbot/4.11.1/tocbot.min.js" ></script>
  <script>
    $(document).ready(function () {
      var boardCtn = $('#board-ctn');
      var boardTop = boardCtn.offset().top;

      tocbot.init({
        tocSelector: '#tocbot',
        contentSelector: 'article.markdown-body',
        headingSelector: 'h1,h2,h3,h4,h5,h6',
        linkClass: 'tocbot-link',
        activeLinkClass: 'tocbot-active-link',
        listClass: 'tocbot-list',
        isCollapsedClass: 'tocbot-is-collapsed',
        collapsibleClass: 'tocbot-is-collapsible',
        collapseDepth: 0,
        scrollSmooth: true,
        headingsOffset: -boardTop
      });
      if ($('.toc-list-item').length > 0) {
        $('#toc').css('visibility', 'visible');
      }
    });
  </script>



  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "拿到一台新MAC我会干什么&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>



  <script  src="https://cdn.staticfile.org/anchor-js/4.2.2/anchor.min.js" ></script>
  <script>
    anchors.options = {
      placement: "right",
      visible: "hover",
      
    };
    var el = "h1,h2,h3,h4,h5,h6".split(",");
    var res = [];
    for (item of el) {
      res.push(".markdown-body > " + item)
    }
    anchors.add(res.join(", "))
  </script>



  <script  src="/binblog/js/local-search.js" ></script>
  <script>
    var path = "/binblog/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>



  <script  src="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.css" />

  <script>
    $('#post img:not(.no-zoom img, img[no-zoom]), img[zoom]').each(
      function () {
        var element = document.createElement('a');
        $(element).attr('data-fancybox', 'images');
        $(element).attr('href', $(this).attr('src'));
        $(this).wrap(element);
      }
    );
  </script>





  

  
    <!-- MathJax -->
    <script>
      MathJax = {
        tex: {
          inlineMath: [['$', '$'], ['\\(', '\\)']]
        },
        options: {
          renderActions: {
            findScript: [10, doc => {
              document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
                const display = !!node.type.match(/; *mode=display/);
                const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
                const text = document.createTextNode('');
                node.parentNode.replaceChild(text, node);
                math.start = { node: text, delim: '', n: 0 };
                math.end = { node: text, delim: '', n: 0 };
                doc.math.push(math);
              });
            }, '', false],
            insertedScript: [200, () => {
              document.querySelectorAll('mjx-container').forEach(node => {
                let target = node.parentNode;
                if (target.nodeName.toLowerCase() === 'li') {
                  target.parentNode.classList.add('has-jax');
                }
              });
            }, '', false]
          }
        }
      };
    </script>

    <script async src="https://cdn.staticfile.org/mathjax/3.0.5/es5/tex-svg.js" ></script>

  













  

  

  

  

  

  





<script src="/binblog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"jsonPath":"/binblog/live2dw/assets/koharu.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
